<%var basepath = "http://localhost:3000/admin/" %>
<header class="main-header">
    <!-- Logo -->
    <a href="/adminlite/index2.html" class="logo">
        优惠券管理系统
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </a>

    </nav>
</header>

<aside class="main-sidebar">
    <section class="sidebar">
        <ul class="sidebar-menu">
            <% if (m ==1){ %>
            <li class="active">
            <%} else{%>
            <li>
                <%}%>
                <a href="<%basepath%>">
                    <i class="fa fa-dashboard"></i> <span>首页</span>
                </a>
            </li>
            <% if (m ==2){ %>
            <li class="active">
                <%} else{%>
            <li>
                <%}%>
                <a href="<%basepath%>admin/shops">
                    <i class="fa fa-meetup"></i> <span>商铺列表</span>
                </a>
            </li>
            <% if (m ==3){ %>
            <li class="active">
                <%} else{%>
            <li>
                <%}%>
                <a href="#">
                    <i class="fa fa-copyright"></i> <span>优惠券管理</span>
                </a>
            </li>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>